<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>


        div{
            width: 200px;
            height: 200px;
            background-color: yellow;
            /* overflow: visible; 显示溢出*/
            /* overflow: hidden;  溢出隐藏 文本裁切*/
            /* overflow: scroll; 显示滚动条 */
            /* overflow: auto; 内容超出才显示滚动条 */
            /* overflow: inherit; 继承父元素的效果*/
        }
        .box{
            overflow-x: auto;
            overflow-y: hidden;
        }

    </style>
</head>
<body>
    
    <div>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quae cum consequuntur culpa eum eligendi perspiciatis nostrum amet nemo maxime quam unde commodi non 
        
    </div>
    <div class="box">
        <img src="./image/1.webp" alt="">

    </div>
    
</body>
</html>